from tortoise import fields, models
class EnvParamParameter(models.Model):
    env_param_parameter_id = fields.IntField(pk=True)
    env_param = fields.ForeignKeyField('models.EnvParameter', related_name='env_param_parameters', on_delete=fields.CASCADE)
    parameter = fields.ForeignKeyField('models.Parameter', related_name='env_param_parameters', on_delete=fields.CASCADE)

    class Meta:
        table = "env_param_parameter"

    def __str__(self):
        return f"EnvParamParameter {self.env_param_parameter_id}"